//
var TN_Widget = function() {
var months = ["", "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
return {
newWindow : true,
CreateEventRow : function(row, isAlt) {
var t = row[4].split("/");
t[0] = months[t[0]];
t[2] = ", " + t[2];
return "
" +
t[0] + " " + "" + t[1] + "" +
t[2] + " " +
row[3].substring(0,3) + " " +
row[5] + " | " +
row[0] + " " +
row[1] + " - " +
row[2] + " | " + this.btnText + "" +
" |
";
},
AddCss: function(cssUrl) {
var fileref=document.createElement("link");
fileref.setAttribute("rel", "stylesheet");
fileref.setAttribute("type", "text/css");
fileref.setAttribute("href", cssUrl);
document.getElementsByTagName("head")[0].appendChild(fileref);
},
CreateTable : function(eventData,kwds,url) {
if(typeof(TN_SetWidgetOptions) == "function")
TN_SetWidgetOptions();
//for backwards compatability
var newTable = [];
for(var cntr = 0; cntr < eventData.length; cntr++)
newTable.push(this.CreateEventRow(eventData[cntr], cntr % 2 == 1));
var objToAddTo;
var footerLink = "";
if(objToAddTo = document.getElementById("tn_results_container")) {
objToAddTo.innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else if(document.querySelector(".tnpl_results_container") != null) {
document.querySelector(".tnpl_results_container").innerHTML = "" + newTable.join('') + "" + footerLink + "
";
}
else
document.write("" + newTable.join('') + "" + footerLink + "
");
}
};
}();
//BPW-TNSERV-04B
TN_Widget.AddCss('//s3.amazonaws.com/TNService/pl-widget/styles/tnpl-results-widget.css');
TN_Widget.CreateTable([['Old Crow Medicine Show','Fox Tucson Theatre','Tucson, AZ','Wednesday','6/12/2024','7:00 PM','6305069','Old-Crow-Medicine-Show-6-12-2024'],['Old Crow Medicine Show','Concert Hall at California Center For The Arts Escondido','Escondido, CA','Friday','6/14/2024','8:00 PM','6305883','Old-Crow-Medicine-Show-6-14-2024'],['Old Crow Medicine Show','Fox Theater - Oakland','Oakland, CA','Saturday','6/15/2024','8:00 PM','6303447','Old-Crow-Medicine-Show-6-15-2024'],['Old Crow Medicine Show','Hayden Homes Amphitheater','Bend, OR','Sunday','6/16/2024','6:30 PM','6303445','Old-Crow-Medicine-Show-6-16-2024'],['Old Crow Medicine Show','Sun Valley Pavilion At The Sun Valley Center for the Arts','Sun Valley, ID','Wednesday','6/19/2024','7:00 PM','6304448','Old-Crow-Medicine-Show-6-19-2024'],['Old Crow Medicine Show','Sandy Amphitheater','Sandy, UT','Thursday','6/20/2024','7:00 PM','6303446','Old-Crow-Medicine-Show-6-20-2024'],['Old Crow Medicine Show','Dillon Amphitheater','Dillon, CO','Friday','6/21/2024','7:00 PM','6303090','Old-Crow-Medicine-Show-6-21-2024'],['Old Crow Medicine Show','Mishawaka Amphitheatre','Bellvue, CO','Saturday','6/22/2024','8:00 PM','6304449','Old-Crow-Medicine-Show-6-22-2024'],['Old Crow Medicine Show','Mishawaka Amphitheatre','Bellvue, CO','Sunday','6/23/2024','7:00 PM','6304450','Old-Crow-Medicine-Show-6-23-2024'],['Old Crow Medicine Show','Summit Stage At Snow King Mountain Resort','Jackson, WY','Friday','7/5/2024','6:00 PM','6335569','Old-Crow-Medicine-Show-7-5-2024']],'"Old Crow Medicine Show"','https://www.ticketnetwork.com');